package com.gun3y.entity;

import java.util.List;

import com.gun3y.entity.pattern.FieldPattern;

public class Wrapper {

    private String name;

    private String description;

    private String base;

    private String encoding;

    private List<FieldPattern> fields;

    public boolean validate() {
	return this.fields != null && !this.fields.isEmpty();
    }

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public String getDescription() {
	return description;
    }

    public void setDescription(String description) {
	this.description = description;
    }

    public List<FieldPattern> getFields() {
	return fields;
    }

    public void setFields(List<FieldPattern> fields) {
	this.fields = fields;
    }

    public String getBase() {
	return base;
    }

    public void setBase(String base) {
	this.base = base;
    }

    public String getEncoding() {
	return encoding;
    }

    public void setEncoding(String encoding) {
	this.encoding = encoding;
    }

}
